home *** CD-ROM | disk | FTP | other *** search
- <HTML><HEAD>
- <TITLE>$${ApplicationName} - Entry Form</TITLE>
- </HEAD><BODY bgcolor="ffffff">
-
- <FONT size="+1">$${ApplicationName}</FONT> <BR>
- <FONT size="+2"><B>Entry Form</B></FONT>
-
- <!--- Entry form --->
- <FORM action="$${SafeApplicationName}_EntryAction.cfm" method="post">
-
- <TABLE>
- <WIZSET i = 0>
- <WIZLOOP index="CurrentField" list="$${EntryFields}">
- <WIZSET i = i + 1>
- <!---- field is in format 'sTable.sField=sType;nSize;bRequired' ---->
- <WIZSET Separator1Pos = Find( CurrentField, '.' )>
- <WIZSET Separator2Pos = Find( CurrentField, '=' )>
- <WIZSET Separator3Pos = Find( CurrentField, ';' )>
- <WIZSET Buffer = Right( CurrentField, Len(CurrentField) - Separator3Pos )>
- <WIZSET Separator4Pos = Len(CurrentField) - Len(Buffer) + Find( Buffer, ';' )>
- <WIZSET TableName = Mid( CurrentField, 1, Separator1Pos - 1 )>
- <WIZSET FieldName = Mid( CurrentField, Separator1Pos + 1, Separator2Pos - Separator1Pos - 1 )>
- <WIZSET FieldType = Mid( CurrentField, Separator2Pos + 1, Separator3Pos - Separator2Pos - 1 )>
- <WIZSET FieldSize = Mid( CurrentField, Separator3Pos + 1, Separator4Pos - Separator3Pos - 1 )>
- <WIZSET FieldRequired = Right( CurrentField, Len(CurrentField) - Separator4Pos )>
-
- <!--- Field: $${TableName}.$${FieldName} --->
- <TR>
- <TD valign="top"> $${FieldName} </TD>
- <TD>
- <WIZIF FieldType EQ 'MEMO'>
- <TEXTAREA name="$${FieldName}" cols=50 rows=5></TEXTAREA>
- <WIZELSEIF FieldType EQ 'BIT'>
- <INPUT type="radio" name="$${FieldName}" value="1" checked> Yes
- <INPUT type="radio" name="$${FieldName}" value="0"> No
- <WIZELSE>
- <INPUT type="text" name="$${FieldName}"<WIZIF FieldSize NEQ '0'> maxLength="$${FieldSize}"</WIZIF>>
- <WIZIF FieldType EQ 'DATETIME'>(i.e. 12/31/97)</WIZIF>
- </WIZIF>
- </TD>
- <WIZIF FieldType EQ 'DATETIME'><INPUT type="hidden" name="$${FieldName}_date">
- <WIZELSEIF FieldType EQ 'FLOAT'><INPUT type="hidden" name="$${FieldName}_float">
- <WIZELSEIF FieldType EQ 'INT'><INPUT type="hidden" name="$${FieldName}_integer">
- </WIZIF
- ></TR>
- </WIZLOOP>
- </TABLE>
- <P>
- <INPUT type="submit" value="Insert Data">
-
- </FORM>
-
-
- </BODY></HTML>